package cn.edu.neusoft.wuguangsheng.market.model;

import java.util.List;

import cn.edu.neusoft.wuguangsheng.market.bean.OrderFoodResut;
import cn.edu.neusoft.wuguangsheng.market.iface.OrderIface;
import cn.edu.neusoft.wuguangsheng.market.listener.ListListener;
import cn.edu.neusoft.wuguangsheng.market.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

/**
 * Created by little on 2018/4/21.
 */

public class OrderModel extends RetrofitBaseModel implements OrderIface<OrderFoodResut> {
    private AllService allService;
    private Retrofit retrofit;
    public OrderModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void showOrder(String uid, ListListener<OrderFoodResut> listListener) {
        Call<List<OrderFoodResut>> call= allService.showOrder(uid);
        callenqueueList(call,listListener);
    }
}
